package com.ruoyi.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存盘点明细对象 jt_stocktaking_item
 * 
 * @author Alan Zhang
 * @date 2025-06-13
 */
public class JtStocktakingItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 盘点明细id */
    private Long itemId;

    /** 盘点ID */
    @Excel(name = "盘点ID")
    private Long stocktakingId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String productCode;

    /** 款式编码 */
    @Excel(name = "款式编码")
    private String styleCode;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;
    /** 规格 */
    @Excel(name = "规格")
    private String spec;

    /** 盘点前数量 */
    @Excel(name = "盘点前数量")
    private Long preInventoryQty;

    /** 盘点后数量 */
    @Excel(name = "盘点后数量")
    private Long postInventoryQty;

    /** 仓位 */
    @Excel(name = "仓位")
    private String warehousePosition;

    /** 盈亏数量 */
    @Excel(name = "盈亏数量")
    private Long profitLossQty;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setStocktakingId(Long stocktakingId) 
    {
        this.stocktakingId = stocktakingId;
    }

    public Long getStocktakingId() 
    {
        return stocktakingId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setStyleCode(String styleCode) 
    {
        this.styleCode = styleCode;
    }

    public String getStyleCode() 
    {
        return styleCode;
    }
    public void setPreInventoryQty(Long preInventoryQty) 
    {
        this.preInventoryQty = preInventoryQty;
    }

    public Long getPreInventoryQty() 
    {
        return preInventoryQty;
    }
    public void setPostInventoryQty(Long postInventoryQty) 
    {
        this.postInventoryQty = postInventoryQty;
    }

    public Long getPostInventoryQty() 
    {
        return postInventoryQty;
    }
    public void setWarehousePosition(String warehousePosition) 
    {
        this.warehousePosition = warehousePosition;
    }

    public String getWarehousePosition() 
    {
        return warehousePosition;
    }
    public void setProfitLossQty(Long profitLossQty) 
    {
        this.profitLossQty = profitLossQty;
    }

    public Long getProfitLossQty() 
    {
        return profitLossQty;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("stocktakingId", getStocktakingId())
            .append("productId", getProductId())
            .append("productCode", getProductCode())
            .append("styleCode", getStyleCode())
            .append("preInventoryQty", getPreInventoryQty())
            .append("postInventoryQty", getPostInventoryQty())
            .append("warehousePosition", getWarehousePosition())
            .append("profitLossQty", getProfitLossQty())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
